import Heater from './components/Heater.vue'


export default {
    install(Vue){
        //给原型上添加属性
        Vue.prototype.a = 1;
        //定义一个全局的过滤器
        Vue.filter("addFilter" , (value) =>{
            return value + "元"
        })
        Vue.component("Heater", Heater)

        Vue.directive("addColor",(ele) => {
            ele.style.color = 'red'
        })

    }
}